
class HomeController < ApplicationController
  before_filter :login_required

  def dashboard
    @username = current_user.login

    @movies = Movie.find_all_appropriate_for_birthdate(current_user.birthdate)
    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @movies }
    end
  end

end
